package com.diy.sigmund.diycommon.designpatterns.strategy.duck;

import com.diy.sigmund.diycommon.designpatterns.strategy.duck.flybehavior.FlyNoWay;
import com.diy.sigmund.diycommon.designpatterns.strategy.duck.quackbehavior.Quack;

/**
 * 模型鸭
 *
 * @author ylm-sigmund
 * @since 2022/1/13 16:55
 */
public class ModelDuck extends Duck {

    public ModelDuck() {
        flyBehavior = new FlyNoWay();
        quackBehavior = new Quack();
    }

    @Override
    protected void display() {
        System.out.println("ModelDuck 模型鸭");
    }

    @Override
    public void a(){
        System.out.println("ssss");
    }
}
